package com.jcx.ldzj.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
* 业精于勤荒于嬉，行成于思毁于随！
* @author Ð¡Ìì
* @since 2021-01-22
*/
@Data
@TableName("login_system_info")
@ApiModel(value="登录信息", description="登录信息")
public class LoginSystemInfo extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "会话编号")
    @TableId("id_")
    private String id;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id_")
    private String userId;

    @ApiModelProperty(value = "用户名")
    @TableField("user_name_")
    private String userName;

    @ApiModelProperty(value = "部门id")
    @TableField("dep_id_")
    private String depId;

    @ApiModelProperty(value = "部门名称")
    @TableField("dep_name_")
    private String depName;

    @ApiModelProperty(value = "登录ip")
    @TableField("host_ip_")
    private String hostIp;

    @ApiModelProperty(value = "登录地点")
    @TableField("login_location_")
    private String loginLocation;

    @ApiModelProperty(value = "浏览器")
    @TableField("browser_")
    private String browser;


    @ApiModelProperty(value = "浏览器版本")
    @TableField("browser_version_")
    private String browserVersion;

    @ApiModelProperty(value = "操作系统")
    @TableField("operating_system_")
    private String operatingSystem;

    @ApiModelProperty(value = "登录状态，0登录失败，1登录成功")
    @TableField("login_star_")
    private Character loginStar;

    @ApiModelProperty(value = "登录信息")
    @TableField("login_remark_")
    private String loginRemark;

    @Override
    public String toString() {
        super.toString();
        return "LoginSystemInfo{" +
                "id='" + id + '\'' +
                ", userId='" + userId + '\'' +
                ", userName='" + userName + '\'' +
                ", depId='" + depId + '\'' +
                ", depName='" + depName + '\'' +
                ", hostIp='" + hostIp + '\'' +
                ", loginLocation='" + loginLocation + '\'' +
                ", browser='" + browser + '\'' +
                ", browserVersion='" + browserVersion + '\'' +
                ", operatingSystem='" + operatingSystem + '\'' +
                ", loginStar=" + loginStar +
                ", loginRemark='" + loginRemark + '\'' +
                '}';
    }
}
